package jwcb.javapjframework.ms_template.service.controller;

import com.fasterxml.jackson.core.type.TypeReference;
import jwcb.javapjframework.ms_template.service.service.RedisHashTestService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.*;

@RestController
@RequestMapping("/test/redis/hash")
public class RedisHashTestController {

    @Autowired
    private RedisHashTestService redisHashTestService;

    @GetMapping("/testOperations")
    public String testHashOperations() {
        return redisHashTestService.testRedisHashOperations();
    }
}